package com.app.controller.miniprogram;

import com.app.common.Result;
import com.app.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
@RestController
@RequestMapping("/api/banner")
public class PageBannerController {
    @Autowired
    private BannerService bannerService;

    //查询轮播图列表
    @GetMapping("/selectBannerList")
    public Result<Object> selectBannerList() {
        return Result.success(bannerService.selectBanner());
    }
}
